import request from "@/utils/serviceApiH2";

/* 管理页面 */

// 删除企业风采
export function delEnterpriseApi(id) {
  return request({
    url: `/apiH2/member/company/manage/elegance/delEleganceById/${id}`,
    method: "DELETE",
  });
}

// 查询企业风采
export function queryEnterpriseApi(uid) {
  return request({
    url: `/apiH2/member/company/manage/selEleganceByUid/${uid}`,
    method: "GET",
  });
}

// 查询企业基本资料
export function queryEnterpriseDataApi(uid) {
  return request({
    url: `/apiH2/member/company/manage/selMessageByUid/${uid}`,
    method: "GET",
  });
}

// 修改企业图标
export function editEnterpriseImageApi(id) {
  return request({
    url: `/apiH2/member/company/manage/updateCompanyLogo/${id}`,
    method: "PUT",
  });
}

// 修改企业基本资料
export function editEnterpriseBasicInfoApi(data) {
  return request({
    url: `/apiH2/member/company/manage/updateCompanyMessage`,
    method: "PUT",
    data,
  });
}

// 上传企业风采
export function uploadCorporateStyleApi(data,cid) {
  return request({
    url: `/apiH2/member/company/manage/uploadElegance`,
    method: "POST",
    data,
    params: {
      cid
    }
  });
}

// 企业工作地区查询
export function selCategoryDistrictListApi() {
  return request({
    url: "/apiH2/member/company/position/selCategoryDistrictList",
    method:'GET'
  });
}

// 企业职位类别查询
export function selCategoryJobListApi() {
  return request({
    url: "/apiH2/member/company/position/selCategoryJobList",
    method:"GET"
  });
}

// 企业性质查询
export function selCategoryNatureListApi() {
  return request({
    url: "/apiH2/member/company/manage/selCategoryNatureList",
    method:'GET'
  });
}

// 企业规模查询
export function selCategoryScaleListApi() {
  return request({
    url: "/apiH2/member/company/manage/selCategoryScaleList",
    method: "GET",
  });
}

// 企业所属行业查询
export function selCategoryTradeListApi() {
  return request({
    url: "/apiH2/member/company/manage/selCategoryTradeList",
    method: "GET",
  });
}

// 根据uid和cid查询营业执照
export function selCompanyAuthApi(params) {
  return request({
    url: `/apiH2/member/company/account/selCompanyAuth/${params.uid}/${params.cid}`,
    method:'GET'
  });
}

// 营业执照执照上传
export function addCompanyAuthApi(data) {
  return request({
    url: "/apiH2/member/company/account/addCompanyAuth",
    method:'POST',
    data
  });
}

// 标签列表查询
export function selTagListApi() {
  return request({
    url: "/apiH2/member/company/position/all/selTagList",
    method:'GET'
  });
}